<div>



<!-- <div class="modal-header">
    <h4 class="modal-title"> 
      基本信息&nbsp;&nbsp;
      <small class="red" ng-if="p.state == '1'">商城卖价和分销价格，产品下架之后才能修改</small>
    </h4>
</div> -->
<div class="modal-body">

<div class="container-fluid form-horizontal" >

    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">产品编号</label>
        <div class="col-sm-4 col-xs-12">
            <p class="form-control-static">{{p.code}}</p>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">产品类型</label>
        <div class="col-sm-9 col-xs-12">
            <p class="form-control-static">
                {{p.product_attr_label}} / {{p.sale_belong_label}}
            </p>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">产品名称</label>
        <div class="col-sm-4 col-xs-12">
            <input type="text" class="form-control" ng-model="p.name" >
        </div>
    </div>

    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">商城卖价</label>
        <div class="col-sm-1 col-xs-12">
            <!-- <input type="number" class="form-control" ng-model="p.guide_price" 
            ng-disabled="p.state == '1'"
            > -->
            <p class="form-control-static">{{p.guide_price}}</p>
        </div>
        <div class="col-sm-5 col-xs-12">
          <p class="form-control-static text-danger">
            商城产品列表中显示的所有型号中的最小价
          </p>
        </div>
    </div>


    <!-- <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">划线价格</label>
        <div class="col-sm-1 col-xs-12">
            <input type="number" class="form-control" ng-model="p.market_price" >
        </div>
        <div class="col-sm-5 col-xs-12">
          <p class="form-control-static text-danger">
            产品的市场价格，门市价格。
          </p>
        </div>
    </div> -->

    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">是否可退</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.back_type == '0'"
                  name="p.back_type"
                  ng-true-value="'0'"
                  ng-false-value="'1'"
                  ng-model="p.back_type"
                >
                <i></i>
            </label>

            <span class="form-control-static text-danger">可退产品，核销后分佣。不可退产品，购买分佣</span>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">发送短信</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.sms_type == '1'"
                  name="p.sms_type"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.sms_type"
                >
                <i></i>
            </label>
        </div>
    </div>

    <div class="form-group" ng-if="p.sms_type == '1'">
        <label class="col-xs-3  control-label text-right">短信内容</label>
        <div class="col-xs-9 ">
            <textarea class="form-control" rows="3" ng-model="p.sms_diy"></textarea>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">启用购买时间</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.flash_state == '1'"
                  name="p.flash_state"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.flash_state"
                >
                <i></i>
            </label>

            <span class="form-control-static text-danger">启用购买时间后，游客只能在规定的时间内购买。距开始：xx:xx:xx/ 已结束</span>
        </div>
    </div>


    <div class="form-group" ng-if="p.flash_state == '1'">
        <label class="col-sm-3 col-xs-4 control-label text-right">开始购买时间</label>
        <div class="col-sm-2 col-xs-12">
            <input type="text" class="form-control" ng-model="p.start_time_date" 
            datetimepicker readonly
            options="vm.options"
            >
        </div>

        <div class="col-sm-2 col-xs-12">
            <input type="text" class="form-control" ng-model="p.end_time_date" 
            datetimepicker readonly
            options="vm.options"
            >
        </div>
    </div>


   <!--  <div class="form-group" ng-if="p.flash_state == '1'">
        <label class="col-sm-3 col-xs-4 control-label text-right">结束购买时间</label>
        <div class="col-sm-3 col-xs-12">
            <input type="text" class="form-control" ng-model="p.end_time_date" 
            datetimepicker readonly
            options="vm.options"
            >
        </div>
    </div> -->

    <div ng-if="p.price_type == '0'">
    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">启用出游时间</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.tour_date_type == '1'"
                  name="p.tour_date_type"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.tour_date_type"
                >
                <i></i>
            </label>

            <span class="form-control-static text-danger">启用出游时间时，游客只能在这个范围内选择出游时间</span>

        </div>
    </div>


    <div class="form-group" ng-if="p.tour_date_type == '1'">
        <label class="col-sm-3 col-xs-4 control-label text-right">开始出游时间</label>
        <div class="col-sm-2 col-xs-12">
            <input type="text" class="form-control" ng-model="p.tour_date_limit_start_date" 
            datetimepicker readonly
            options="vm1.options"
            >
        </div>

        <div class="col-sm-2 col-xs-12">
            <input type="text" class="form-control" ng-model="p.tour_date_limit_end_date" 
            datetimepicker readonly
            options="vm1.options"
            >
        </div>

    </div>
    </div>

   

    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">生效时间</label>
        <div class="col-sm-4 col-xs-12">
            <ui-select ng-model="p.take_effect_type" theme="bootstrap" >
                <ui-select-match>
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.code as item in label.take_effect_type_array | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
    </div>


    <!-- <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">未支付订单过期时间</label>
        <div class="col-sm-4 col-xs-12">
            <ui-select ng-model="p.pay_overtime" theme="bootstrap" >
                <ui-select-match placeholder="请选择过期时间">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.code as item in label.nopay_cancel_minute_array | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
    </div> -->



    <div class="form-group " >
        <label class="col-sm-3 col-xs-6 control-label text-right">身份证是否必填</label>
        <div class="col-sm-9 col-xs-6">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.cardno_state == '1'"
                  name="p.cardno_state"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.cardno_state"
                >
                <i></i>
              </label>
        </div>
    </div>


    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">是否在商城中隐藏</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.isshow == '1'"
                  name="p.isshow"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.isshow"
                >
                <i></i>
              </label>

              <span class="form-control-static text-danger">开启该选项后，产品将不会出现在商城中,货架等其他地方正常显示。</span>
        </div>
    </div>

</div>

</div>





<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="gogo()">保存</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>


</div>